package com.distribuida.supertrunfo.impl;

import java.rmi.Naming;
import java.rmi.RemoteException;

public class Servidor {
	

	public static void main(String[] args) {
		try {
			java.rmi.registry.LocateRegistry.createRegistry(1099);
			System.out.println("RMI registry ready.");			
		} catch (RemoteException e) {
			System.out.println("RMI registry already running.");			
		}
		try {
			Naming.rebind ("Servidor", new Partidas());
			System.out.println ("PartidaServer is ready.");
		} catch (Exception e) {
			System.out.println ("Partida failed:");
			e.printStackTrace();
		}
	}
}